import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/subscribermsgtemple',
  component: Layout,
  redirect: '/subscribermsgtemple/index',
  name: 'subscribermsgtemple',
  meta: {
    title: '订阅消息模板',
    icon: 'carbon:template',
  },
  children: [
    {
      path: 'index',
      name: 'subscribermsgtempleIndex',
      component: () => import('@/views/subscribermsgtemple/index.vue'),
      meta: {
        title: '订阅消息列表',
        menu: false,
        breadcrumb: false,
        activeMenu: '/subscribermsgtemple',
      },
    },
    {
      path: 'detail',
      name: 'subscribermsgtempleDetail',
      component: () => import('@/views/subscribermsgtemple/detail.vue'),
      meta: {
        title: '订阅消息配置',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/subscribermsgtemple',
      },
    },
  ],
}

export default routes
